namespace OasisCiq.CommonTypes
{
    using System;
    using System.Linq;
    using XS;

    /// <summary>
    /// A list of values to indicate the level of reliability of the data
    /// </summary>
    public class DataQualityTypeList : XSString
    {
        private static readonly string[] PossibleValues = new[] 
        {
            "Valid", // The data was validated and is considered to be true and correct.
            "Invalid" // Indicates that at least some part of the content is known to be incorrect.
        };

        public DataQualityTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}